package com.llly.service.impl;

import com.llly.mapper.ProductMapper;
import com.llly.pojo.Easybuy_product;
import com.llly.pojo.Easybuy_product_category;
import com.llly.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;


    @Override
    public List<Easybuy_product_category> findAllEpcs() {
        return productMapper.findAllEpcs();
    }

    @Override
    public List<Easybuy_product> selectEpsByEpcId(Integer id) {
        return productMapper.selectEpsByEpcId(id);
    }

    @Override
    public Easybuy_product findProductByid(Integer pid) {
        return productMapper.findProductByid(pid) ;
    }

    @Override
    public List<Easybuy_product> findAllprosByEpc(Integer epcId) {
        return productMapper.findAllprosByEpc(epcId);
    }

    @Override
    public Easybuy_product_category findpname(Integer id) {
        return productMapper.findpname(id);
    }

    @Override
    public List<Easybuy_product> showProduct(String epname) {
        return productMapper.showProduct(epname);
    }

    @Override
    public List<Easybuy_product_category> ShowAllOne() {
        return productMapper.ShowAllOne();
    }

    @Override
    public List<Easybuy_product_category> ShowAllTwo(Integer parentId) {
        return productMapper.ShowAllTwo(parentId);
    }

    @Override
    public List<Easybuy_product_category> ShowAllThree(Integer parentId) {
        return productMapper.ShowAllThree(parentId);
    }

    @Override
    public int addeasybuy(Easybuy_product easybuy_product) {
        return productMapper.addeasybuy(easybuy_product);
    }


}
